package og.example.service;
import og.example.entity.Student;
import og.example.dao.StudentDataProvider;
import java.util.List;

public class StudentService {
    private StudentDataProvider studentDataProvider = new StudentDataProvider();

    public boolean studentAdd(Long studentId, String studentName, String groupName) {
        return studentDataProvider.studentAdd(studentId, studentName, groupName);
    }

    public boolean studentDelete(Long studentId) {
        return studentDataProvider.studentDelete(studentId);
    }

    public List<Student> studentQuery() {
        return studentDataProvider.studentQuery();
    }
}
